package com.kingyea.app.market.client;

import com.kingyea.app.market.appBaseInfo.bean.AppBaseInfo;
import com.kingyea.app.market.condition.AllCondition;
import com.kingyea.mobilepolice.system.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "app-market-manage")
public interface AppBaseInfoServiceClient {


    @RequestMapping(value = "/appBaseInfo/appType/{classCode}", method = RequestMethod.GET)
    Result getByAppType(@PathVariable(value = "classCode") String classCode);


    @RequestMapping(value = "/appBaseInfo/market/{marketCode}", method = RequestMethod.GET)
    Result getByMarket(@PathVariable(value = "marketCode") String marketCode);

    @RequestMapping(value = "/appBaseInfo/{getList}", method = RequestMethod.GET)
    List<AppBaseInfo> getList(AppBaseInfo appBaseInfo);

    @RequestMapping(value = "/appBaseInfo/publish/search", method = RequestMethod.POST)
    Object searchPublishApp(@RequestBody AllCondition condition);
}
